<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="_cabecalho.jsp" %>
<h1>Ingrediente</h1>
<div>
<c:set var="ingrediente" value="${requestScope.informacaoParaAlterar}" />
<form action="${ingrediente != null ? 'IngredienteAtualizar' : 'IngredienteIncluir'}" method="get">
<input type="hidden" name="acao" value="${ingrediente != null ? 'alterar' : 'incluir'}" >
<input type="hidden" name="id" value="${ingrediente.id}" >
<fieldset>
<legend>Dados</legend>
<label for="descricao" >Nome:</label>
<input class="form-control" type="text" name="nome" id="nome" value="${ingrediente.nome}" maxlength="50" size="50" required  />
<label for="descricao" >Descricao: </label>
<input type="text" name="descricao" id="descricao" value="${ingrediente.descricao}" maxlength="255" size="100" required />
<br/>
<label for="descricao" >Medida: </label>
<input type="text" name="medida" id="medida" value="${ingrediente.medida}" maxlength="50" size="50" required />
<br/>
<input type="submit" class="btn btn-large btn-primary"  value="${ingrediente != null ? 'Alterar' : 'Incluir'}" id="salvar"  />
<input type="reset" value="Limpar" id="limpar"  />
</fieldset>
</form>
</div>    
<%@include file="_rodape.jsp" %>    